﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using SqlSugar;

namespace TUlingWpf.Models
{
    public class EntityBase : ObservableObject
    {
        private int _id;

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID
        {
            get { return _id; }
            set
            {
                SetProperty(ref _id, value);
            }
        }

        private DateTime _createTime = DateTime.Now;

        public DateTime CreateTime
        {
            get { return _createTime; }
            set
            {
                SetProperty(ref _createTime, value);
            }
        }

        private DateTime _updateTime;

        public DateTime UpdateTime
        {
            get { return _updateTime; }
            set
            {
                SetProperty(ref _updateTime, value);
            }
        }
    }
}